/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package presentation;

import formatters.EditFormatter;
import formatters.Formatter;
import formatters.InputFormatter;
import formatters.ViewFormatter;

/**
 *
 * @author Alejandro
 */
public class TextElement extends PresentationElement {

    @Override
    public void setParam(String param, Object value) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public Object getParam(String param) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void acceptView(Formatter f) {
        ViewFormatter vf = (ViewFormatter) f;
        vf.formatText(this);
    }

    @Override
    public void acceptEdit(Formatter f) {
        EditFormatter ef = (EditFormatter) f;
        ef.formatText(this);
    }

    @Override
    public void acceptInput(Formatter f) {
        InputFormatter fi = (InputFormatter) f;
        fi.formatText(this);
    }

}
